export default [
  {
    path: '/',
    component: '../layouts/BlankLayout',
    routes: [
      {
        path: '/user',
        component: '../layouts/UserLayout',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
      {
        path: '/',
        component: '../layouts/SecurityLayout',
        routes: [
          {
            path: '/',
            component: '../layouts/BasicLayout',
            authority: ['admin', 'user'],
            routes: [
              {
                path: '/',
                redirect: '/usermanage/list',
              },
              {
                name: '用户管理',
                icon: 'smile',
                path: '/usermanage',
                routes: [
                  {
                    name: '列表',
                    icon: 'smile',
                    path: '/usermanage/list',
                    component: './usermanage/List',
                  },
                ],
              },
              {
                name:'图表',
                icon:'smile',
                path:'/chart',
                routes: [
                  {
                    name:'demo1',
                    path:'/chart/demo1',
                    component:'./chart/Demo1',
                  },
                  {
                    name:'demo2',
                    path:'/chart/demo2',
                    component:'./chart/Demo2',
                  },
                  {
                    name:'demo3',
                    path:'/chart/demo3',
                    component:'./chart/Demo3',
                  }
                ]
              },
              {
                name: '布局管理器',
                icon: 'smile',
                path: '/grid',
                routes: [
                  {
                    name: 'demo1',
                    path: '/grid/demo1',
                    component:'./grid/Demo1',
                  }
                ]
              },
              {
                component: './404',
              },
            ],
          },
          {
            component: './404',
          },
        ],
      },
    ],
  },
  {
    component: './404',
  },
];
